home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / bit / src / ulib / read2lsb.c < prev    next >
C/C++ Source or Header  |  1994-08-01  |  528b  |  21 lines

  1. /***********************************************************************
  2.  * $Id: read2lsb.c,v 0.80 1994/02/24 09:48:11 zhao Exp $
  3.  *
  4.  *.  Copyright(c) 1993,1994 by T.C. Zhao
  5.  *   All rights reserved.
  6.  *.
  7.  *    Read 2bytes LSB first
  8.  ***********************************************************************/
  9. #if !defined(lint) && defined(F_ID)
  10. char *id_2lsb = "$Id: read2lsb.c,v 0.80 1994/02/24 09:48:11 zhao Exp $";
  11. #endif
  12.  
  13. #include <stdio.h>
  14. #include "ulib.h"
  15.  
  16. int
  17. get2LSBF(FILE * fp)
  18. {
  19.     return getc(fp) | (getc(fp) << 8);
  20. }
  21.